﻿<link href="@Url.Content("~/content/activitie_detail.css")" rel="stylesheet" type="text/css"/>

@model PessModel.Author

@{
    ViewBag.Title = "Edit";
}

<h2>修改个人信息（用户）</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset class="edit m-pw">
        <legend></legend>
        <div class="m-sd-xx m-sd-title">
            <div>
                @Html.HiddenFor(model => model.UserID)            
            </div>
            <div class="title">
                    用户名：
                @if(Roles.IsUserInRole(Membership.GetUser().UserName,"Author")){ @Membership.GetUser().UserName}
                else{@Html.DisplayFor(model=>model.SerialNumber)}
            </div>
            <div class="sidebd displayCoordinate">
                <div class="editor-label">
                    @*@Html.LabelFor(model => model.RealName)*@真实姓名：
                    @Html.EditorFor(model => model.RealName)
                    @Html.ValidationMessageFor(model => model.RealName)
                </div>

                <div class="editor-label">
                    @*@Html.LabelFor(model => model.Phone)*@联络电话：
                    @Html.EditorFor(model => model.Phone)
                    @Html.ValidationMessageFor(model => model.Phone)
                </div>

                <div class="editor-label">
                    @*@Html.LabelFor(model => model.ContactAddress)*@联系地址：
                    @Html.EditorFor(model => model.ContactAddress)
                    @Html.ValidationMessageFor(model => model.ContactAddress)
                </div>

                <div class="editor-label">
                    @*@Html.LabelFor(model => model.ZipCode)*@邮政编码：
                    @Html.EditorFor(model => model.ZipCode)
                    @Html.ValidationMessageFor(model => model.ZipCode)
                </div>

                <div>
                    @Html.HiddenFor(model => model.SerialNumber)
                </div>
                @Html.Hidden("ReturnUrl", (object)ViewBag.ReturnUrl)
                <div class="editor-btn" style="text-indent:6.4em;">
                    <input type="submit" value="保存" class="u-btn u-btn-save3" />
                </div>
            </div>
        </div>
    </fieldset>
}

<div>
    @Html.ActionLink("返回", "Go2ReturnUrl", new { returnUrl = (object)ViewBag.ReturnUrl })
</div>


